package cn.hxzy.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum WaybillStatus {

    waybillStatus_01(101, "待领票"),
    waybillStatus_02(102, "待到矿"),
    waybillStatus_03(103, "待装车"),
    waybillStatus_04(104, "待卸车"),
    waybillStatus_05(105, "已取消"),
    waybillStatus_06(106, "已结车"),
    getWaybillStatus_07(107,"已装车");



    private Integer waybillStatus;
    private String waybillStatusName;

    public static String getWaybillStatusValue(int index){
        for (WaybillStatus value : WaybillStatus.values()) {
            if (value.getWaybillStatus() == index) {
                return value.getWaybillStatusName();
            }
        }
        return null;
    }
}
